package com.android.jumishangcheng.model.group;

import com.android.jumishangcheng.utils.ConstantsUrl;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/6/29.
 */

public class BrandDiscountMainData {
    private boolean flag;
    private int code;
    private String msg;
    private int time;
    private BrandDiscountMainData.DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BrandDiscountMainData.DataBean getData() {
        return data;
    }

    public void setData(BrandDiscountMainData.DataBean data) {
        this.data = data;
    }
    public static  class  DataBean
    {
        private List<BrandDiscountMainData.DataBean.ListBean> list;
        private int list_total;
        private List<Cat_list> cat_list;

        public List<Cat_list> getCat_list() {
            return cat_list;
        }

        public void setCat_list(List<Cat_list> cat_list) {
            this.cat_list = cat_list;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public int getList_total() {
            return list_total;
        }

        public void setList_total(int list_total) {
            this.list_total = list_total;
        }


        public static  class ListBean implements MultiItemEntity
        {
            @Override
        public int getItemType() {

                return ConstantsUrl.BRANDDISCOUNTMAINITEMTYPE;
        }
              private String id;
            private  String catname;
            private String thumb;
            private String sale;
            private String end_time;
            private int  end_day;
            private List<BrandDiscountMainData.DataBean.ListBean.Goods_list> goods_list;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public String getSale() {
                return sale;
            }

            public void setSale(String sale) {
                this.sale = sale;
            }

            public int getEnd_day() {
                return end_day;
            }

            public void setEnd_day(int end_day) {
                this.end_day = end_day;
            }

            public List<Goods_list> getGoods_list() {
                return goods_list;
            }

            public void setGoods_list(List<Goods_list> goods_list) {
                this.goods_list = goods_list;
            }

            public static  class  Goods_list
            {
                private String id;
                private String name;
                private String price;
                private  String team_price;
                private String team_num;
                private String img_src;
                private String img_cover;

                public String type;//1时表示是 查看更多的

                public Goods_list(String type){
                    this.type = type;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getTeam_price() {
                    return team_price;
                }

                public void setTeam_price(String team_price) {
                    this.team_price = team_price;
                }

                public String getTeam_num() {
                    return team_num;
                }

                public void setTeam_num(String team_num) {
                    this.team_num = team_num;
                }

                public String getImg_src() {
                    return img_src;
                }

                public void setImg_src(String img_src) {
                    this.img_src = img_src;
                }

                public String getImg_cover() {
                    return img_cover;
                }

                public void setImg_cover(String img_cover) {
                    this.img_cover = img_cover;
                }
            }
        }
        public   static  class Cat_list
        {
            private  String id;
            private  String catname;
            public Cat_list(String id,String name ){
                this.id= id;
                this.catname=name;
            }
            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }
        }
    }
}
